package com.wwh.furns.dao.impl;

import com.wwh.furns.dao.AdminDAO;
import com.wwh.furns.dao.BasicDAO;
import com.wwh.furns.entity.Admin;

/**
 * @author Albert
 * @date 2024/5/30-19:31
 * @describe
 */
public class AdminDAOImpl extends BasicDAO<Admin> implements AdminDAO {
    @Override
    public Admin getAdminByUsernameAndPassword(String username, String password) {
        String sql = "SELECT * FROM `admin` WHERE `username`=? AND `password`=?";
        return querySingle(sql, Admin.class, username, password);
    }
}
